Skip to content

[releases/28.x] Shopify Fulfillment Order - Fulfillment line - Order line connection#7420

Open
onbuyuka wants to merge 1 commit intoreleases/28.xfrom
bugs/629287-backport
Open

[releases/28.x] Shopify Fulfillment Order - Fulfillment line - Order line connection#7420
onbuyuka wants to merge 1 commit intoreleases/28.xfrom
bugs/629287-backport

Conversation

@onbuyuka
Copy link
Copy Markdown
Contributor

@onbuyuka onbuyuka commented Mar 27, 2026

Summary

Backport of bug #617896 to releases/28.x.

Fixes AB#629287

Original PR(s): #6157, #7065

## Summary
- Shopify's `fulfillmentCreate` API requires all fulfillment orders in a
single request to belong to the same location. When a shipment spans
multiple Shopify locations (e.g. one item split across two warehouses),
the connector was combining them into one GraphQL mutation, causing a
`"All fulfillment orders must be assigned to a single location"` error.
- The fulfillment request builder now groups lines by `Shopify Location
Id` and emits separate mutations per location.
- Added a new key (`Shopify Location Id`, `Shopify Fulfillment Order
Id`) to the Fulfillment Order Line table to support the grouping.
- Extracted `BuildFulfillmentQueryStart` and `FinalizeFulfillmentQuery`
helper procedures to eliminate duplication.

Fixes
[AB#617896](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/617896)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@onbuyuka onbuyuka requested a review from a team as a code owner March 27, 2026 11:49
@github-actions github-actions bot added the AL: Apps (W1) Add-on apps for W1 label Mar 27, 2026
@github-actions github-actions bot modified the milestone: Version 28.1 Mar 27, 2026
@onbuyuka onbuyuka enabled auto-merge (squash) March 27, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant